package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * SysApproveLevelRateVehicleType generated by hbm2java
 */
@Entity
@Table(name="sys_approve_level_rate_vehicle_type"
    ,catalog="lmis"
)
public class SysApproveLevelRateVehicleType  implements java.io.Serializable {


     private SysApproveLevelRateVehicleTypeId id;
     private SysApproveLevel sysApproveLevel;
     private SysVehicleType01 sysVehicleType01;
     private BigDecimal approvedMinVal;
     private BigDecimal approvedMaxVal;
     private Set<SysApproveLevelRateVehicleTypeDcc> sysApproveLevelRateVehicleTypeDccs = new HashSet<SysApproveLevelRateVehicleTypeDcc>(0);

    public SysApproveLevelRateVehicleType() {
    }

	
    public SysApproveLevelRateVehicleType(SysApproveLevelRateVehicleTypeId id, SysApproveLevel sysApproveLevel, SysVehicleType01 sysVehicleType01) {
        this.id = id;
        this.sysApproveLevel = sysApproveLevel;
        this.sysVehicleType01 = sysVehicleType01;
    }
    public SysApproveLevelRateVehicleType(SysApproveLevelRateVehicleTypeId id, SysApproveLevel sysApproveLevel, SysVehicleType01 sysVehicleType01, BigDecimal approvedMinVal, BigDecimal approvedMaxVal, Set<SysApproveLevelRateVehicleTypeDcc> sysApproveLevelRateVehicleTypeDccs) {
       this.id = id;
       this.sysApproveLevel = sysApproveLevel;
       this.sysVehicleType01 = sysVehicleType01;
       this.approvedMinVal = approvedMinVal;
       this.approvedMaxVal = approvedMaxVal;
       this.sysApproveLevelRateVehicleTypeDccs = sysApproveLevelRateVehicleTypeDccs;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="vehicleType01No", column=@Column(name="VEHICLE_TYPE_01_NO", nullable=false) ), 
        @AttributeOverride(name="approvedLevelNo", column=@Column(name="APPROVED_LEVEL_NO", nullable=false) ) } )
    public SysApproveLevelRateVehicleTypeId getId() {
        return this.id;
    }
    
    public void setId(SysApproveLevelRateVehicleTypeId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="APPROVED_LEVEL_NO", nullable=false, insertable=false, updatable=false)
    public SysApproveLevel getSysApproveLevel() {
        return this.sysApproveLevel;
    }
    
    public void setSysApproveLevel(SysApproveLevel sysApproveLevel) {
        this.sysApproveLevel = sysApproveLevel;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VEHICLE_TYPE_01_NO", nullable=false, insertable=false, updatable=false)
    public SysVehicleType01 getSysVehicleType01() {
        return this.sysVehicleType01;
    }
    
    public void setSysVehicleType01(SysVehicleType01 sysVehicleType01) {
        this.sysVehicleType01 = sysVehicleType01;
    }

    
    @Column(name="APPROVED_MIN_VAL", precision=15)
    public BigDecimal getApprovedMinVal() {
        return this.approvedMinVal;
    }
    
    public void setApprovedMinVal(BigDecimal approvedMinVal) {
        this.approvedMinVal = approvedMinVal;
    }

    
    @Column(name="APPROVED_MAX_VAL", precision=15)
    public BigDecimal getApprovedMaxVal() {
        return this.approvedMaxVal;
    }
    
    public void setApprovedMaxVal(BigDecimal approvedMaxVal) {
        this.approvedMaxVal = approvedMaxVal;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysApproveLevelRateVehicleType")
    public Set<SysApproveLevelRateVehicleTypeDcc> getSysApproveLevelRateVehicleTypeDccs() {
        return this.sysApproveLevelRateVehicleTypeDccs;
    }
    
    public void setSysApproveLevelRateVehicleTypeDccs(Set<SysApproveLevelRateVehicleTypeDcc> sysApproveLevelRateVehicleTypeDccs) {
        this.sysApproveLevelRateVehicleTypeDccs = sysApproveLevelRateVehicleTypeDccs;
    }




}


